package com.ruoyi.system.service;

import com.ruoyi.system.domain.BdmOrder;
import com.ruoyi.system.domain.Order;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface IBdmPayService {

    /**
     * 是否设置余额支付密码
     */
     boolean ifSetBalancePayCode();


    /**
     * 小程序拉起支付
     */
    Map<String, Object> appPay(BdmOrder bdmOrder);

    /**
     * 小程序支付回调
     */
    String payNotify(HttpServletRequest request, HttpServletResponse response);


    /**
     * 查询支付
     */
    String selectPay(Order order);

    String selectPay1(Order order);


    Map<String, String> getMD5Sign(Map<String, String> map);

    public Map<String, Object> getPaySigninfo(BdmOrder bdmOrder);

    // 充值获取支付参数
    public Map<String, Object> getChargeMD5Sign(BdmOrder bdmOrder);
}
